$(function () {
    // 
    imgScroll.rolling({
        name: "cooperate-client",
        width: "45vw",
        height: "12vw",
        direction: "left",
        speed: 40,
        addcss: true,
      });
    // 数字叠加
    $(".counter").countUp();
    // 轮播图
    var mySwiper = new Swiper(".swiper-container", {
      pagination: ".pagination",
      speed: 1500,
      autoplay: 3000,
      loop: true,
      grabCursor: true,
      paginationClickable: true,
    });
    $(".swiper-container").on("mouseenter", function (e) {
      mySwiper.stopAutoplay();
    });
    $(".swiper-container").on("mouseleave", function (e) {
      mySwiper.startAutoplay();
    });
    $(".arrow-left").on("click", function (e) {
      e.preventDefault();
      mySwiper.swipePrev();
    });
    $(".arrow-right").on("click", function (e) {
      e.preventDefault();
      mySwiper.swipeNext();
    });

    // 轮播图
    var aboutSwiper = new Swiper(".index-about-swiper", {
        speed: 1500,
        autoplay: 3000,
        loop: true,
        grabCursor: true,
        paginationClickable: true,
    });
    $(".index-about-banner").on("mouseenter", function (e) {
        aboutSwiper.stopAutoplay();
    });
    $(".index-about-banner").on("mouseleave", function (e) {
        aboutSwiper.startAutoplay();
    });
    $(".index-about-banner .arrow-left").on("click", function (e) {
        e.preventDefault();
        aboutSwiper.swipePrev();
    });
    $(".index-about-banner .arrow-right").on("click", function (e) {
        e.preventDefault();
        aboutSwiper.swipeNext();
    });
  });
  